<html>
<head>
<script language="javascript">
function setcomponent() {
  if (window.opener) {
	var oEditor = window.opener.FCKeditorAPI.GetInstance('ta') ;
	var name = document.new_component.name.value;
	var value = document.new_component.value.value;

	var html="<SELECT name='"+name+"</SELECT>";
	if (document.new_component.onclick.checked)
	    html=html +"onclick='"+name+"_click();";
	if (document.new_component.onchange.checked)
	    html=html +"onchange='"+name+"_click();";
	html=html +"'>\n";

	var code="";
	if (document.new_component.onclick.checked)
	    code=code+"function "+name+"_click(){\n}\n//---------------------------------------------------------------------------\n\n";
	if (document.new_component.onchange.checked)
	    code=code+"function "+name+"_change(){\n}\n//---------------------------------------------------------------------------\n\n";

	oEditor.InsertHtml(html);
	window.opener.document.editor.codice.value=window.opener.document.editor.codice.value+code;
  }
  this.close();
}
</script>
<title>textbox_properties</title>
</head>
<body>
<form name="new_component" action="javascript:setcomponent();" >
name		<input type="text" name="name" value="ListBox1"><br />
value		<input type="text" name="value" value="ListBox1"><br />
onclick 	<input type="checkbox" name="onclick"><br />
onchange 	<input type="checkbox" name="onchange"><br />
<hr />
<input type="submit" value="make ListBox" ><br />
</form>
</body>
